from flask import Flask
from flask_uploads import configure_uploads
from flask_uploads import UploadSet
from flask_uploads import IMAGES

models = UploadSet('photos', IMAGES)


def init_model(app: Flask):
    configure_uploads(app, models)